package com.feemanage.domain.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.framework.config.BigDecimalSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * 预算科目经费执行率
 */
@Data
@ApiModel("科目进度")
public class ProjectBudgetExecuteVo {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("科目代码")
    private String subjectCode; //科目代码

    @ApiModelProperty("科目名称")
    private String subjectName; //科目名称

    @ApiModelProperty("预算金额")
    @JsonSerialize(using = BigDecimalSerializer.class)
    private BigDecimal subjectFee; //预算金额

    @ApiModelProperty("支出金额")
    @JsonSerialize(using = BigDecimalSerializer.class)
    private BigDecimal payoutFee; //支出金额

    @ApiModelProperty("执行率")
    @JsonSerialize(using = BigDecimalSerializer.class)
    private BigDecimal executeRate; //执行率

    private String upCode; //上层节点

    private List<ProjectBudgetExecuteVo> children;

}
